Skip to main content

01 - Press Key

Overview


The Grape Board comes with 2 programmable buttons A and B, and another reset button which is used to restart the Grape Board, often used to re-execute existing internal programs image-20240321144624352

Application method


Block Introduction

| Programming block | Function Introduction |

|image-20240321144659265 | - The button returns 1 when pressed, otherwise returns 0 (When the button is pressed, the voltage level changes to a low level) |

Example 1 - Buttoned flashligh

  • Effect: Use button A to turn the colored light on or off

    image.png

  • Programming

    image-20240321144844122